import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        nickName:  sessionStorage.getItem('nickName') || '',
        password:sessionStorage.getItem('password') || '',
        phoneNumber:sessionStorage.getItem('phoneNumber') || '',
        imgUrl:sessionStorage.getItem('imgUrl') || '',
        logining: sessionStorage.getItem('logining') || false,
        blog: '',
        msg:[]
    },       //状态管理
    mutations: {

    },   //修改state
    actions: {},    //异步操作
    getters:{},     //计算属性
    modules: {}     //模块
})

export default store;
